package com.jn.exam.question.mapper;

import com.jn.exam.question.entity.Question;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jn.exam.question.entity.vo.QuestionWrapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 总题库 Mapper 接口
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-01-17
 */
public interface QuestionMapper extends BaseMapper<Question> {

    //通过id彻底删除
    boolean completeDeleteById(String id);

    //分页查询
    List<Question> pageSelect(QuestionWrapper questionWrapper);

    Integer getPageTotal(QuestionWrapper questionWrapper);

    boolean completeDeleteByIds(String[] ids);

    List<Question> getDeletedQuestions();

    boolean recoveryDeleted(String[] ids);

    boolean deleteQuestionExpire(Date date);


    boolean removeByIds(Map<String, Object> params);

    Question getDeletedById(String id);
}
